package com.md;

import java.util.Arrays;
import java.util.List;

//姓名,多门课程（数组），多个学生（集合）
public class teacher {
    private  int tId;
    private  String tName;
    private List<student> studentList;
    private String[] classArr;


    @Override
    public String toString() {
        return "teacher{" +
                "tId=" + tId +
                ", tName='" + tName + '\'' +
                ", studentList=" + studentList +
                ", classArr=" + Arrays.toString(classArr) +
                '}';
    }

    public List<student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<student> studentList) {
        this.studentList = studentList;
    }

    public String[] getClassArr() {
        return classArr;
    }

    public void setClassArr(String[] classArr) {
        this.classArr = classArr;
    }

    public int gettId() {
        return tId;
    }

    public void settId(int tId) {
        this.tId = tId;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public teacher() {
    }

    public teacher(int tId, String tName) {
        this.tId = tId;
        this.tName = tName;
    }

}
